<?php

namespace App\Models\OperationManagement;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SanitationCategory extends Model
{
	use SoftDeletes;
    protected $table = 'sanitation_categories';
    public $primaryKey = 'id';
    protected $guarded = ['category_ids'];

    protected $hidden = ['deleted_at','created_at','updated_at'];

    function files()
    {
        return $this->hasMany(SanitationCategoryFile::class,'category_id')->with('file');
    }
}
